package com.woniu.darryringmall.admin.controller;

import com.woniu.darryringmall.admin.service.ALiPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
public class ALiPayController {
    @Autowired
    private ALiPayService aLiPayService;

    @RequestMapping("/pay")
    public void payMent(HttpServletResponse response, HttpServletRequest request) {
        try {
            aLiPayService.aliPay(response,request);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
